package edu.kit.aifb.ruleintegrator.util;

import java.io.File;
import java.io.IOException;

public class Util {
	
	
	public static File ensureFile(String path) throws IOException{
		File file=new File(path);
		if(!file.exists()){
			if(!file.getParentFile().exists()){
				file.getParentFile().mkdirs();
			}
			file.createNewFile();
		}
		
		
		return file;
	}

	  public static double sigmoid(double x) {
		    return (1/( 1 + Math.pow(Math.E,(-1*x))));
	  }
}
